PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-02-29 02:43:29.425389+00:00 (UTC)
In US/Central Time, this is 2024-02-28 20:43:29.425389-06:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/f6569da661582cf3cdb9df60a70e6726c56d7b32c49002aacc692245596162a2.png
We are just generating a random time serie here.
../_images/8f49bacdc9e27484dddbc5ef5255cf1a75f4b8f51233c6a11156df140f3ef889.png
../_images/f1bcab295e2e3fd5a5fd623c1ad7f30343ca76a64e44355555d0b47cdc154fdd.png